<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewReplyPage.ascx.cs" Inherits="forums_controls_threads_NewReplyPage" %>
<%@ Register Src="../posts/PreviewPost.ascx" TagName="PreviewPost" TagPrefix="uc3" %>
<%@ Register Src="ThreadPosts.ascx" TagName="ThreadPosts" TagPrefix="uc2" %>
<%@ Register Src="../forums/breadcrumb.ascx" TagName="breadcrumb" TagPrefix="uc1" %>
<div>
<uc1:breadcrumb ID="Breadcrumb1" runat="server" NavigateUrlFormat="~/forums/forum.aspx?f={0}" RootItemText="FSTDT Forums" RootItemUrl="~/forums/default.aspx" Seperator=" . " UsePostBack="false"/>
. New Post
</div>
<asp:Panel runat="server" ID="pnlThread" Width="100%">
    <asp:MultiView ID="mviewThread" runat="server">
        <asp:View ID="viewThread" runat="server">
            <uc3:PreviewPost ID="PreviewPost1" runat="server" />
            <p>
            Subject:
                <br />
            <asp:TextBox runat="server" ID="txtSubject" Width="300px" ></asp:TextBox>
                </p>
            <p>
            Post:<asp:RequiredFieldValidator ID="valPostRequired" runat="server" ErrorMessage="You gotta have something to say in your post."
                    ValidationGroup="NewPost" ControlToValidate="txtPost"></asp:RequiredFieldValidator><br />
            <asp:TextBox runat="server" ID="txtPost"
                TextMode="multiLine"
                Rows="25"
                Columns="80" />
            </p>
            <p>
            <asp:Button runat="server" ID="btnSubmit" Text="Post" OnClick="btnSubmit_Click" ValidationGroup="NewPost" />
                <asp:Button ID="btnPreview" runat="server" OnClick="btnPreview_Click" Text="Preview" /></p>
            
            <hr />
            
            <p>
            Last 25 posts:
            </p>
            <uc2:ThreadPosts id="ThreadPosts1" runat="server">
                </uc2:ThreadPosts>
            
            
        </asp:View>
        <asp:View ID="viewNoThread" runat="server">
            Thread not found.
        </asp:View>
        <asp:View ID="viewThreadLocked" runat="server">
            This thread is locked.
        </asp:View>
    </asp:MultiView></asp:Panel>